class Student(object):
    # 类属性，所有的实例相同的特征
    chenghu = "学生"

    def __init__(self, a1, a2, a3, a4, a5, 成绩):
        # 每个实例可能不同的特征
        self.name = a1
        self.age = a2
        self.sex = a3
        self.classNum = a4
        self.sno = a5
        self.scores = 成绩

    def displayInfo(self):
        print(self.name, self.age, '岁', self.sex, self.classNum, self.sno)

    def get_name(self):
        self.name = "ds"
        return self.name

    def get_age(self):
        return self.age

    def get_course(self):
        # max函数可以求一个序列的最大值，min函数求一个序列的最小值
        return max(self.scores)

    @classmethod
    def read(cls):
        print(cls.chenghu, "听了一段讲话")

    @staticmethod
    def tianqi():
        print("今天天气晴朗")


s1 = Student("小明", 19, "男", "4", "18", [90, 80, 95])
s2 = Student("小红", 18, "女", "4", "17", [91, 80, 75])
s1.height = 150
s1.displayInfo()
s2.displayInfo()
r = s1.get_course()
print(r)
t = s2.get_course()
print(t)

